package com.bkgrands.fpmu.activities;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.bkgrands.fpmu.R;

public class HomeActivity extends AppCompatActivity {
    RelativeLayout pen, cmp;
    Button num;
    TextView school, district, hmname;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_home);

        pen = (RelativeLayout) findViewById(R.id.pen);
//        cmp = (RelativeLayout) findViewById(R.id.cmp);
        num = (Button) findViewById(R.id.pronumber);
        school = (TextView) findViewById(R.id.school);
        district = (TextView) findViewById(R.id.schoollocation);
        hmname = (TextView) findViewById(R.id.mastername);

        hmname.setText(LoginActivity.headname);
        school.setText(LoginActivity.headsch);
        district.setText(LoginActivity.headdist);
        num.setText(SItesActivity.numofprojects);

        pen.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                HomeActivity.this.startActivity(new Intent(HomeActivity.this, SItesActivity.class));
//                overridePendingTransition(R.anim.fade_in, R.anim.fade_out);
            }
        });
//        cmp.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                HomeActivity.this.startActivity(new Intent(HomeActivity.this, CompleteActivity.class));
//                overridePendingTransition(R.anim.fade_in, R.anim.fade_out);
//            }
//        });
    }
}
